<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/MasterPage.Master"
    Inherits="System.Web.Mvc.ViewPage<Animoso.Domain.Registration>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Register
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Inschrijven</h2>
    <p>
        Vul dit formulier in om je in te schrijven voor de intro.</p>
    <%= Html.ValidationSummary("Edit was unsuccessful. Please correct the errors and try again.") %>
    <% using (Html.BeginForm("Register", "Introduction", FormMethod.Post))
       {%>
    <fieldset class="form">
        <legend>Basisgegevens</legend>
        <table>
            <tr>
                <td>
                    <label for="FirstName">
                        Voornaam:</label>
                </td>
                <td>
                    <%= Html.TextBox("FirstName", Model.FirstName) %>
                    <%= Html.ValidationMessage("FirstName", "*") %>
                </td>
            </tr>
            <tr>
                <td>
                    <label for="LastName">
                        Achternaam:</label>
                </td>
                <td>
                    <%= Html.TextBox("LastName", Model.LastName) %>
                    <%= Html.ValidationMessage("LastName", "*") %>
                </td>
            </tr>
            <tr>
                <td>
                    <label for="DateOfBirth">
                        Geboortedatum:</label>
                </td>
                <td>
                    <%= Html.TextBox("DateOfBirth", String.Format("{0:g}", Model.DateOfBirth)) %>
                    <%= Html.ValidationMessage("DateOfBirth", "*") %>
                </td>
            </tr>
            <tr>
                <td>
                    <label for="Phone">
                        Telefoonnummer:</label>
                </td>
                <td>
                    <%= Html.TextBox("Phone", Model.Phone) %>
                    <%= Html.ValidationMessage("Phone", "*") %>
                </td>
            </tr>
            <tr>
                <td>
                    <label for="MobilePhone">
                        Mobiele telefoon:</label>
                </td>
                <td>
                    <%= Html.TextBox("MobilePhone", Model.MobilePhone) %>
                    <%= Html.ValidationMessage("MobilePhone", "*") %>
                </td>
            </tr>
            <tr>
                <td>
                    E-Mail:
                </td>
            </tr>
            <tr>
                <td>
                    Opleiding:
                </td>
            </tr>            
        </table>
    </fieldset>
    <fieldset class="form">
        <legend>Adresgegevens</legend>
        <table>
            <tr>
                <td>
                    Straat:
                </td>
            </tr>
            <tr>
                <td>
                    Nummer:
                </td>
            </tr>
            <tr>
                <td>
                    Postcode:
                </td>
            </tr>
            <tr>
                <td>
                    Stad:
                </td>
            </tr>
        </table>
    </fieldset>
    <fieldset class="form">
        <legend>Gegevens ouders</legend>
        <table>
            <tr>
                <td>
                    Straat:
                </td>
            </tr>
            <tr>
                <td>
                    Nummer:
                </td>
            </tr>
            <tr>
                <td>
                    Postcode:
                </td>
            </tr>
            <tr>
                <td>
                    Stad:
                </td>
            </tr>
            <tr>
                <td>
                    Telefoonnummer:
                </td>
            </tr>
        </table>        
    </fieldset>
    <fieldset class="form">
        <legend>Bankgegevens</legend>
        <table>
            <tr>
                <td>
                    Rekeningnummer:
                </td>
            </tr>
            <tr>
                <td>
                    Ten name van:
                </td>
            </tr>            
        </table>
    </fieldset>
    <fieldset>
                Ik wil lid worden van S.V. Animoso: <%=Html.CheckBox("IsBecomeMember") %>            
                <input type="submit" />
    </fieldset>
    <% } %>
    <div>
        <%=Html.ActionLink("Back to List", "Index") %>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeadPlaceHolder" runat="server">
</asp:Content>
